<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%><%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<style type="text/css">
.styled-select select {
   background: white;
   width: 268px;
   padding: 5px;
   font-size: 16px;
   border: 3px solid lightblue;
   height: 34px;
}
body
{
background-image:url('/BF_MES/img/gradient2.png');
background-repeat:no-repeat;
background-position:20px 105px;
}

</style>
<script type="text/javascript" src="./jquery-1.7.2.js"></script>
<script type="text/javascript">
	$(document).ready(function() {
		//현황 부분
		$("#find_state").change(function(){
			var state=$(this).val();
			if($(this).val()=="operation_realtime_state"){
				location.href="factory.do?command=goOperationInfo";
			}else if($(this).val()=="elementLotState"){
				location.href="factory.do?command=goElementLotState";
			}else if($(this).val()=="lotHistory"){
				location.href="factory.do?command=lotHistory";
			}
		});
		//관리 부분
		$("#management").change(function(){
			if($(this).val()==="getMachineInfo"){
				location.href="factory.do?command=goMachineInfo";
			}else if($(this).val()==="addOperation"){ // 공정 추가
				location.href="factory.do?command=addOperation";
			}else if($(this).val()==="lot"){// 금일 공정 완료
				location.href="factory.do?command=lot";
			}else if($(this).val()==="dayOperResult"){// 금일 공정 완료
				location.href="factory.do?command=dayOperResult";
			}
		});
	});//ready
</script>
</head>
<body>
<c:if test="${sessionScope.login.member_id!='ceo' }">
<div class="styled-select">
<select id="find_state">
	<option >현황</option>
	<option value="operation_realtime_state">공정별 실시간 현황</option>
	<option value="elementLotState">주문 묶음당 현황(lot 실시간 현황)</option>
	<option value="lotHistory">누적 현황(누적 history 현황)</option>
</select>
<select id="management">
	<option >관리</option>
	<option value="getMachineInfo">생산 장비 관리</option>
	<option value="addOperation">공정 추가</option>
	<option value="lot">원재료 입력</option>
	<option value="dayOperResult">금일 공정 완료</option>
</select>
</div>
</c:if>
</body>
</html>